package pwd.allen.password;

/**
 * 验证结果
 *
 * @author 门那粒沙
 * @create 2021-12-19 15:57
 **/
public class CheckMsg {
    public enum Type {
        /**
         * 验证未通过
         */
        NOPASS
        /**
         * 验证通过
         */
        , PASS
        /**
         * 出错
         */
        , ERROR;
    }

    private Type type = Type.PASS;
    private String msg;

    public CheckMsg(Type type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "CheckMsg{" +
                "type=" + type +
                ", msg='" + msg + '\'' +
                '}';
    }
}
